project(Turi)

if(WIN32)
  SET(PLATFORM_SOURCES client/console_cancel_handler_win.cpp)
else()
  SET(PLATFORM_SOURCES client/console_cancel_handler_unix.cpp)
endif()

# Libraries should not link both cppipc and cppipc_zookeeper together
# They are not compatible
make_library(cppipc
  OBJECT
  SOURCES
    client/comm_client.cpp
    ${PLATFORM_SOURCES}
    common/message_types.cpp
    common/object_factory.cpp
    common/object_factory_impl.cpp
    common/ipc_deserializer.cpp
    server/comm_server.cpp
    ipc_object_base.cpp
  REQUIRES
    nanosockets boost logger cancel_serverside_ops
)

make_library(cancel_serverside_ops
  OBJECT
  SOURCES
    server/cancel_ops.cpp
)
